<template>
  <div class=''>我是兄弟二
        <span>{{msg}}</span>
  </div>

</template>

<script>
import { EventBus } from '../../bus'
export default {
  name: 'MyComponent',
  props: { },
  data () {
    return {
      msg: ''
    }
  },
  methods: {
    abc () {
      EventBus.$on('add', msg => {
        console.log(msg, 18)
      })
    }
  },
  computed: { },
  created () {
    this.abc()
  },
  mounted () { }
}
</script>

<style scoped lang='less'></style>
